home *** CD-ROM | disk | FTP | other *** search
- Path: HOPPER.ACM.ORG!news
- From: varnk@e62.diebold.com (Ken Varn)
- Newsgroups: comp.lang.c++
- Subject: Re: C++ beginner quesion on data member access.
- Date: 11 Apr 1996 18:10:09 GMT
- Organization: Diebold
- Message-ID: <4kjhu2$338@HOPPER.ACM.ORG>
- References: <4kgb76$r3s@HOPPER.ACM.ORG> <Dpnpqz.2Io@presby.edu>
- NNTP-Posting-Host: 199.218.232.47
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.7
-
- In article <Dpnpqz.2Io@presby.edu>, jtbell@presby.edu says...
- >
- >At some point in the future, you might want to change the way the member
- >data is organized, after which the value in question might not be stored
- >directly as a member data item, but can be calculated from other member
- >data. The classic example of this is rectangular versus polar
- >representation for complex numbers:
- >
-
- I am not questioning the validity of performing calculations using get or set
- member functions, I am mainly interested in if you should or should not
- always use get and set member functions when accessing data members if no
- calculations are needed.
-
-